home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / hobby / xmagic2.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-10-30  |  3KB  |  88 lines

  1. echo off
  2. cls
  3. if not exist x_magic.exe goto error
  4. if !==%1! goto auto
  5. goto manual
  6.  
  7. :ERROR
  8. cls
  9. echo ----------------------------------------------------------------
  10. echo -   ERROR
  11. echo -
  12. echo -     You must run INSTALL from the DOS prompt of the drive
  13. echo -     that contains the CrossMagic disk,  (e.g. A: or B:)
  14. echo -
  15. echo -   Please correct and try again.
  16. echo ----------------------------------------------------------------
  17. goto exit
  18.  
  19.  
  20. :AUTO
  21. echo .........................................................................
  22. echo :                                                                       :
  23. echo :  CrossMagic V2.03                                                     :
  24. echo :                                                                       :
  25. echo :  This program requires 680K of free space on your hard disk.          :
  26. echo :                                                                       :
  27. echo :  To install CrossMagic on C:\XMAGIC2                                  :
  28. echo :     press any key now.                                                :
  29. echo :                                                                       :
  30. echo :  To install on a drive other than C:                                  :
  31. echo :     1. Press [CTRL] [C] and answer Y to "Terminate batch file?"       :
  32. echo :     2. Type INSTALL X then press [ENTER]                              :
  33. echo :           where:   X is the letter of the desired drive               :
  34. echo :                    DO NOT add a colon (:) to the drive letter.        :
  35. echo :                    A \XMAGIC2 directory is created automatically.     :
  36. echo :                                                                       :
  37. echo :           example: INSTALL E - installs onto E:\XMAGIC2               :
  38. echo :                                                                       :
  39. echo :.......................................................................:
  40. echo To install on C:\XMAGIC2,
  41. pause
  42. cls
  43. echo Now installing CrossMagic on C:\XMAGIC2
  44. md c:\xmagic2
  45. x_magic C:\xmagic2\ -d
  46. if errorlevel 1 goto space
  47. cls
  48. c:
  49. cd \xmagic2
  50. goto end
  51.  
  52. :MANUAL
  53. goto ok
  54.  
  55. :SPACE
  56. cls
  57. echo --------------------------------------------------------------
  58. echo -  ERROR
  59. echo -
  60. echo -    There is insufficient space on the specified drive (%1:)
  61. echo -
  62. echo -    -or-  You have specified an invalid drive parameter.
  63. echo -
  64. echo -        If you see two colons here (%1:), please
  65. echo -        type INSTALL X without adding a colon.
  66. echo -
  67. echo -        X is the letter of the desired drive
  68. echo -
  69. echo -  Please correct and try again.
  70. echo --------------------------------------------------------------
  71. goto exit
  72.  
  73. :OK
  74. echo Now installing CrossMagic on %1:\XMAGIC2
  75. md %1:\xmagic2
  76. x_magic %1:\xmagic2\ -d
  77. if errorlevel 1 goto space
  78. cls
  79. %1:
  80. cd \xmagic2
  81.  
  82. :END
  83. echo Installation successful!
  84. echo.
  85. echo You may now type XMAGIC and press [ENTER] to run CrossMagic.
  86.  
  87. :EXIT
  88.